package com.itheima.d7_interface_demo;

//学生实体类
public class Student {
    //私有成员变量
    private String name;//姓名
    private String gender;//性别
    private double score;//成绩

    //构造器
    public Student() {
    }

    public Student(String name, String gender, double score) {
        this.name = name;
        this.gender = gender;
        this.score = score;
    }

    //getter、setter方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
